import request from './api'

// 获取优惠券列表
export const getCoupons = (params) => {
  return request.get('/api/coupons', { params })
}

// 添加优惠券
export const addCoupon = (data) => {
  return request.post('/api/coupons/add', data)
}

// 锁定优惠券
export const lockCouponRecord = (data) => {
  return request.post('/api/coupons/lockCouponRecord', data)
}

// 更新优惠券
export const updateCoupon = (data) => {
  return request.post('/api/coupons/update', data)
}